package com.hsh.erp.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 
 * @TableName stock
 */
@TableName(value ="stock")
@Data
@Accessors(chain = true)
public class Stock implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 商品id
     */
    private Integer productId;

    /**
     * 仓库id
     */
    private Integer repositoryId;

    /**
     * 库存数量
     */
    private Integer num;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}